/*
 Navicat Premium Data Transfer

 Source Server         : hyzf_connect
 Source Server Type    : MySQL
 Source Server Version : 50728 (5.7.28)
 Source Host           : localhost:3306
 Source Schema         : rbac

 Target Server Type    : MySQL
 Target Server Version : 50728 (5.7.28)
 File Encoding         : 65001

 Date: 07/03/2024 08:48:26
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for role
-- ----------------------------
DROP TABLE IF EXISTS `role`;
CREATE TABLE `role` (
  `id` int(11) DEFAULT NULL,
  `role_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `auth_codes` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `user_ids` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Records of role
-- ----------------------------
BEGIN;
INSERT INTO `role` (`id`, `role_name`, `auth_codes`, `user_ids`) VALUES (1, '管理员', '1,2', '2,5');
INSERT INTO `role` (`id`, `role_name`, `auth_codes`, `user_ids`) VALUES (2, '经理', '2', NULL);
COMMIT;

-- ----------------------------
-- Table structure for user
-- ----------------------------
DROP TABLE IF EXISTS `user`;
CREATE TABLE `user` (
  `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `id` int(11) DEFAULT NULL,
  `age` int(11) DEFAULT NULL,
  `sex` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  `address` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

-- ----------------------------
-- Records of user
-- ----------------------------
BEGIN;
INSERT INTO `user` (`name`, `id`, `age`, `sex`, `address`) VALUES ('刘德华', 3, 50, '男', '香港');
INSERT INTO `user` (`name`, `id`, `age`, `sex`, `address`) VALUES ('黎明', 2, 60, '男', '九龙');
INSERT INTO `user` (`name`, `id`, `age`, `sex`, `address`) VALUES ('张学友', 4, 30, '男', '尖沙咀');
INSERT INTO `user` (`name`, `id`, `age`, `sex`, `address`) VALUES ('王祖贤', 5, 20, '女', '洪兴');
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;
